package com.sprucetec.live.common.dto.business;

import com.sprucetec.live.entity.LiveAnchor;
import lombok.Data;

/**
 * @author chenkai
 * @date 2020/3/30 3:16 下午
 * @description:
 */
@Data
public class LiveAnchorDto  extends LiveAnchor{

    private Integer pageSize;

    private Integer pageIndex;

    public void judgePage() {
        if (pageIndex == null) {
            this.setPageIndex(1);
        }
        if (pageSize == null) {
            this.setPageSize(10);
        }
    }
}
